require('../scss/vita/vita.scss')
require('../scss/task.scss')

document.body.addEventListener('touchstart', function() {});
var border = {
	init: function() {
		var percent = $(".state-percent");
		for (var i = percent.length - 1; i >= 0; i--) {
			var perHeight = parseInt($(percent[i]).css("height"));
			if (perHeight < $(percent[i]).prev().height() && perHeight > 0) {
				console.log();
				if ($(".container").hasClass("warm")) {
					$(percent[i]).css("border-top", "1px solid #ca2424");
				} else {
					$(percent[i]).css("border-top", "1px solid #d5a000");
				}
			}
		}

	}
};
border.init();